#ifndef __HAL_TYPES_H__
#define __HAL_TYPES_H__

#include "my_define.h"

/*-------------my types----------------*/
typedef signed char int8;
typedef unsigned char uint8;
typedef signed short int16;
typedef unsigned short uint16;
#ifdef __R8C
typedef signed long int32;
typedef unsigned long uint32;
#endif
#ifdef __STM32
typedef signed int int32;
typedef unsigned int  uint32;
typedef signed long int64;
typedef unsigned long  uint64;
#endif
#ifdef __R8C
typedef unsigned char bool;

/*----------my define-----------------*/

typedef enum
{ Bit_RESET = 0,
  Bit_SET
}BitAction;
#ifndef TRUE
    #define TRUE 0
#endif

#ifndef FALSE
    #define FALSE 1 /*!< 非零都是FALSE属性 */
#endif

#ifndef NULL
    #define NULL 0
#endif
#endif

#endif /* __HAL_TYPES_H__ */
